* {
  margin: 0;
  padding: 0;
  font-family: "微软雅黑";
  text-decoration: none;
}

body {
  background-image: url("/images/profile/位图/背景图1.jpg");
  background-repeat: repeat;
  background-attachment: fixed;
  background-position: left top;
}

// 新消息
.newNews {
  width: 230px;
  height: 40px;
  position: fixed;
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 1px 0px rgba(0, 0, 0, 0.3), 0 0 6px 2px rgba(0, 0, 0, 0.15);
  border-radius: 2px 0px 0px 2px;
  bottom: 0px;
  right: 0px;
  z-index: 200;

  .number {
    display: flex;
    position: absolute;
    left: 57px;
    top: -3px;

    .p1 {
      width: 8px;
      height: 16px;
      background-color: red;
      border-radius: 50px 0 0 50px;
      line-height: 16px;
      display: inline-block;
    }

    .p2 {
      height: 16px;
      background-color: red;
      color: #fff;
      line-height: 16px;
      font-size: 13px;
      display: inline-block;
    }

    .p3 {
      width: 8px;
      height: 16px;
      background-color: red;
      border-radius: 0 50px 50px 0;
      line-height: 20px;
      display: inline-block;
    }
  }

  img {
    width: 33px;
    height: 33px;
    margin-top: 3.5px;
    cursor: pointer;
    margin-left: 30px;
  }

  .newNewList {
    position: absolute;
    right: 60px;
    top: 10px;
    color: #808080;
  }
}

// 上方资料卡
.data-box {
  width: 920px;
  height: 280px;
  background-image: url("/images/profile/位图/资料卡背景 (1).jpg");
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
  margin: 0 auto;
  margin-top: 70px;
  background-size: cover;
  background-position: center;
  animation-name: image;
  animation-duration: 10s;
  animation-delay: 0.6s;
  animation-fill-mode: forwards;
  // 背景图片放大
  background-size: auto 370px;

  // 资料卡背景在延迟06秒后缩小动画效果
  @keyframes image {
    0% {
      background-size: auto 370px;
    }

    100% {
      background-size: auto 285px;
    }
  }

  // 选择背景图的按钮
  .replaceCover {
    border: 1px solid #fff;
    border-radius: 3px;
    width: 135px;
    background-color: rgba(255, 255, 255, 0.3);
    float: right;
    margin-top: -10px;
    margin-right: -10px;
    cursor: pointer;
    user-select: none;

    // 选择按钮中的彩虹图
    img {
      width: 30px;
      height: 30px;
      vertical-align: middle;
    }

    span {
      color: #551a8b;
    }
  }

  // 我的头像
  .img-box {
    width: 108px;
    margin: 0 auto;
    user-select: none;

    // 资料卡的头像
    .userImg {
      width: 100px;
      height: 100px;
      border-radius: 50%;
      margin-top: 30px;
      border: 4px solid rgba(255, 255, 255, 0.6);
      cursor: pointer;
    }
  }

  // 昵称
  .nickname {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    color: #fff;
    margin-top: 9px;

    .Gender {
      width: 33px;
      height: 33px;
      vertical-align: middle;
    }
  }

  // 个性签名
  .autograph {
    font-size: 14px;
    text-align: center;
    color: #fff;
    margin-top: 11px;
  }

  // 关注按钮
  .btn-box {
    width: 100px;
    margin: 15px auto;
    user-select: none;

    .follow {
      width: 100px;
      height: 32px;
      background-color: #ff8140;
      border: 0px;
      color: #ffff;
      font-size: 14px;
      cursor: pointer;
      outline: none;
      border: none;
      border-radius: 2px;
    }
  }
}

// 更换背景图的模态框
.replaceCover-img {
  width: 500px;
  height: 100%;
  background-color: rgb(243, 252, 255);
  position: fixed;
  right: -500px;
  top: 0px;
  bottom: 0px;
  z-index: 9999;
  user-select: none;

  // 标题
  h3 {
    text-align: center;
    color: #ff8140;
    line-height: 60px;
  }

  // 关闭按钮
  .closeSvg {
    width: 40px;
    height: 40px;
    position: absolute;
    right: 14px;
    top: 8px;
    cursor: pointer;
  }

  div::-webkit-scrollbar {
    width: 6px;
    background-color: rgb(217, 244, 255);
  }

  div::-webkit-scrollbar-thumb {
    background: #ff8140;
    border-radius: 5px;
  }

  div {
    width: 430px;
    margin: 10px auto;
    overflow-y: auto;
    height: 85%;

    .img {
      width: 327px;
      height: 100px;
      border-radius: 3px;
      border: 3px solid rgb(231, 205, 255);
      cursor: pointer;
      margin-top: 10px;
    }
  }
}

// 资料卡下的导航
.Navigation {
  width: 920px;
  height: 40px;
  background-color: #fff;
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
  margin: 0 auto;
  user-select: none;

  p {
    text-align: center;
    line-height: 40px;

    span {
      color: black;
      font-size: 13px;
      cursor: pointer;
    }

    .picture {
      margin-left: 330px;
    }
  }
}

// 下方内容
.bottom {
  width: 920px;
  margin: 0 auto;
  display: flex;

  // 左边
  .bigLeft-box {
    width: 300px;

    .left-blog {
      .data {
        margin-top: 15px;
        width: 300px;
        height: 60px;
        display: flex;
        background-color: #fff;
        border-radius: 3px;
        padding-top: 15px;

        .follow,
        .fans {
          width: 150px;
          height: 55px;
          border-right: 1px solid #d9d9d9;
          text-align: center;
          cursor: pointer;
        }

        .blog {
          width: 150px;
          height: 55px;
          text-align: center;
          cursor: pointer;
        }

        span {
          font-size: 18px;
          font-weight: 800;
        }
      }

      // 我的粉丝
      .mydata {
        width: 300px;
        height: 425px;
        background-color: #fff;
        border-radius: 3px;
        margin-top: 10px;
        display: none;
        overflow-y: auto;

        h3 {
          margin-left: 15px;
          padding-top: 5px;
          padding-bottom: 5px;
        }

        span {
          font-size: 16px;
          margin-left: 15px;
        }

        p {
          margin-left: 15px;
          font-size: 16px;
          width: 80px;
          display: inline-block;
          color: #808080;
          text-align: right;
        }

        // 编辑按钮 跳转设置页面
        .Gosetting {
          color: #8590a6;
          margin-left: 15px;
          font-size: 13px;
        }

        // 个性签名
        .qianming {
          color: black;
          font-size: 16px;
          width: 160px;
          display: inline-block;
          margin-left: 10px;
        }

        .mydataBox {
          width: 260px;
          height: 55px;
          margin: auto;
          border-bottom: 1px solid rgb(196, 196, 196);
          display: flex;
          align-items: center;

          .mydataBoxA {
            width: 45px;
            height: 45px;

            .userImg {
              width: 45px;
              height: 45px;
              border-radius: 50%;
            }
          }

          .mydataBoxB {
            height: 45px;
            width: 200px;

            .NickName {
              font-size: 15px;
              font-weight: 600;
              margin-left: 20px;
              color: #353535;
              line-height: 25px;
            }

            .address {
              font-size: 12px;
              margin-left: 20px;
              color: #6b6b6b;
              cursor: default;
              display: inline-block;
            }
          }

          // 关注按钮
          .mydataBoxButton {
            width: 45px;
            height: 25px;
            background-color: #ff8140;
            color: #ffff;
            font-size: 12px;
            cursor: pointer;
            outline: none;
            border: none;
            border-radius: 2px;
            float: left;
          }

          // 滚动条
          ::-webkit-scrollbar {
            width: 5px;
            background-color: #ffffff;
          }

          ::-webkit-scrollbar-thumb {
            background: #d8d8d8;
            border-radius: 2px;
          }
        }
      }

      ::-webkit-scrollbar {
        width: 5px;
        background-color: #ffffff;
      }

      ::-webkit-scrollbar-thumb {
        background: #d8d8d8;
        border-radius: 2px;
      }
    }
  }

  // 右边
  .right-blog {

    // 博客
    .blog-data {
      width: 600px;
      border-top-right-radius: 3px;
      border-top-left-radius: 3px;
      margin-left: 20px;
      margin-top: 15px;
      display: none;
    }

    // 相册
    .blog-data {
      .picture-box {
        background-color: #fff;
        padding-bottom: 40px;
        margin-bottom: 260px;

        h2 {
          color: rgb(34, 34, 34);
          margin-left: 90px;
          line-height: 70px;
        }

        // 图片
        .blogImg-Imgbox {
          width: 420px;
          margin: auto;

          img {
            width: 100px;
            height: 100px;
            cursor: pointer;
          }
        }

        // 没有更多了
        .noMore {
          width: 260px;
          height: 150px;
          margin: auto;
          margin-top: 130px;
          padding-bottom: 50px;

          .noMoreSvg {
            width: 150px;
            height: 150px;
          }

          p {
            color: #515151;
            font-size: 17px;
            font-weight: 600px;
            margin-left: 20px;
            width: 150px;
          }
        }
      }
    }
  }
}

// 更换头像的模态框
.backgroundReplaceBox {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0px;
  right: 0px;
  bottom: 0px;
  left: 0px;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 9999;
  display: none;

  .replaceBox {
    width: 540px;
    height: 550px;
    border-top: 2px solid #ff8140;
    background-color: #fff;
    position: fixed;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    margin: auto;
    z-index: 510;

    .top {
      width: 540px;
      height: 50px;
      border-bottom: 1px solid rgb(212, 212, 212);
      line-height: 50px;

      h3 {
        margin-left: 40px;
      }
    }

    // 中间
    .middle {
      width: 540px;
      height: 400px;
      display: flex;
      justify-content: space-around;
      align-items: center;

      .middle-left {
        width: 370px;
        height: 370px;
        background-color: rgb(240, 239, 239);

        div {
          .headPortrait {
            width: 300px;
            height: 300px;
            margin-top: 35px;
            margin-left: 35px;
            border-radius: 50%;
          }
        }
      }

      .middle-right {
        width: 140px;
        height: 370px;
        background-color: rgb(240, 239, 239);

        // 预览
        .preview {
          color: #a0a0a0;
          text-align: center;
          margin-top: 10px;
          font-weight: 600;
        }

        // 大
        .textBig {
          color: #3a3a3a;
          text-align: center;
          font-size: 18px;
          margin-top: 10px;
        }

        .previewBig {
          width: 110px;
          height: 110px;
          margin: auto;

          .headPortrait {
            width: 110px;
            height: 110px;
            border-radius: 50%;
          }
        }

        // 中
        .textMiddle {
          color: #3a3a3a;
          text-align: center;
          font-size: 15px;
          margin-top: 10px;
        }

        .previewMiddle {
          width: 80px;
          height: 80px;
          margin: auto;

          .headPortrait {
            width: 80px;
            height: 80px;
            border-radius: 50%;
          }
        }

        // 小
        .textSmall {
          color: #3a3a3a;
          text-align: center;
          font-size: 12px;
          margin-top: 10px;
        }

        .previewSmall {
          width: 50px;
          height: 50px;
          margin: auto;

          .headPortrait {
            width: 50px;
            height: 50px;
            border-radius: 50%;
          }
        }
      }
    }

    .fileButton {
      width: 260px;
      height: 30px;
      line-height: 30px;
      text-align: center;
      background-color: #ececec;
      margin: auto;
      cursor: pointer;
      color: #000;
      border-radius: 2px;
    }

    .bottomBox {
      width: 540px;
      height: 70px;
      display: flex;
      justify-content: space-around;
      align-items: center;

      div {

        // 保存按钮
        .preservation {
          width: 82px;
          height: 30px;
          background-color: #ff8140;
          border-radius: 2px;
          font-size: 13px;
          color: #fff;
          outline: none;
          border: none;
          cursor: pointer;
        }

        // 取消按钮
        .cancel {
          width: 82px;
          height: 30px;
          background-color: #a7a7a7;
          border-radius: 2px;
          font-size: 13px;
          color: #fff;
          outline: none;
          border: none;
          cursor: pointer;
        }
      }
    }
  }
}

// 当页面下滑>370时 左边盒子变成固定定位
#left-blog {
  position: fixed;
  top: 40px;
  margin-left: 0px;
}

// 当浏览器宽度<960时
@media screen and (max-width: 960px) {

  // 粉丝盒子
  .left-blog {
    display: none;
  }

  // 资料卡盒子缩小
  .data-box {
    width: 600px;
    height: 200px;
    margin-top: 160px;
  }

  // 头像盒子
  .data-box {
    .img-box {
      width: 108px;
      margin: 0 auto;

      .userImg {
        width: 100px;
        height: 100px;
        border-radius: 50%;
        margin-top: -70px;
        border: 4px solid rgba(255, 255, 255, 0.6);
      }
    }
  }

  // 小导航栏
  .Navigation {
    width: 600px;

    // 相册选项
    p {
      .picture {
        margin-left: 160px;
      }
    }
  }

  // 下方盒子
  .bottom {
    width: 600px;
    margin: auto;
  }

  .right-blog {
    margin-left: -20px;
  }
}